<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>app列表</title>
</head>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
<script type="text/javascript">
    function showAdress()
    {
        alert('failed!');

    }
</script>
<body>

<!--<div th:replace="~{common/header::header}"></div>-->
<h4 th:text="${appModel.title}">
    渡西湖
</h4>
<div>
    <a  th:href="@{/app_action/form}">
        新建app
    </a>
</div>
<table border="2">
    <thead>
    <tr>
        <td>id</td>
        <td>名字</td>
        <td>内容</td>
        <td>google_url</td>
        <td>download_url</td>
        <td>image_list</td>
        <td>管理1</td>
        <td>管理2</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${appModel.appList.size()} eq 0">
        <td colspan="3">无数据！</td>
    </tr>
    <tr th:each="app_single:${appModel.appList}">
        <td th:text="${app_single.id}"></td>
        <td><a th:href="@{'/app_action/app_detail01/'+${app_single.id}}" th:text="${app_single.name}"></a></td>
        <td th:text="${app_single.content}"></td>
        <td th:text="${app_single.google_url}"></td>
        <td th:text="${app_single.download_url}"></td>
        <td th:text="${app_single.image_list}"></td>
        <td><a th:href="@{'/app_action/delete/'+${app_single.id}}">删除</a></td>
        <td><a th:href="@{'/app_action/edit/'+${app_single.id}}">编辑</a></td>

    </tr>
    </tbody>
</table>
<!--<div th:replace="~{common/footer::footer}"></div>-->
</body>
</html>